<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>

<body>
    <script>
        // <,>,=,<=,>= 比较运算的返回结果是boolean
        /* 
            先将两边的值转换为number再比较

         */
        var a = 10;
        var b = "20";
        console.log(a > b); //true
        var c = "true";
        console.log(a > c); //false
        //Number(a)>Numver(c)  10>NaN  NaN是不能参与计算的，它与任何值做比较，结果都是NaN false；
        console.log(b > c); //false
        //Number(b)>Numver(c)  20>NaN  false

       
    </script>
</body>

</html>